<?
/*
Plugin Name: SCOT
Plugin URI: http://wordpress.org/#SCOT
Description: SCOT
Author:Ir
Version: 1.0
Author URI: http://www.scot-project.org/
*/ 

function scot() {
/*	$now = date("Y/m/d");
	$date = "";
	$file=fopen(dirname(__file__)."/last_update","r+");
	if($file != null) { 
		while(!feof($file)) {
			$date = fgets($file);
		}
		fclose($file);
	}
		
	if($date != $now) {*/
		require(dirname(__file__).'/scot-exporter.php');
		scotExport();
/*		$file=fopen(dirname(__file__)."/last_update","w");
		fputs($file, $now);
		fclose($file);
	}*/
}

add_action('wp_footer', 'scot');
add_action('admin_footer', 'scot');
?>